package com.tjhzzx.ibmsSupervisor.model.dashboard;

import javax.baja.sys.Flags;
import javax.baja.sys.Property;
import javax.baja.sys.Sys;
import javax.baja.sys.Type;
import javax.baja.util.BFolder;

public class BDashboardRoot extends BFolder {

    public static final Property title = newProperty(0, "信息总览", null);

    public String getTitle() {
        return getString(title);
    }

    public void setTitle(String v) {
        setString(title, v, null);
    }

    public static final Property layouts = newProperty(Flags.READONLY, "{}", null);

    public String getLayouts() {
        return getString(layouts);
    }

    public void setLayouts(String v) {
        setString(layouts, v, null);
    }

    public static final Property layoutLock = newProperty(0, false, null);

    public boolean getLayoutLock() {
        return getBoolean(layoutLock);
    }

    public void setLayoutLock(boolean v) {
        setBoolean(layoutLock, v, null);
    }

//    public static final Property description = newProperty(Flags.READONLY, "Index's Dashboard Root", null);
//
//    public String getDescription() {
//        return getString(description);
//    }
//
//    public void setDescription(String v) {
//        setString(description, v, null);
//    }

//    public static final Property rowNum = newProperty(0, BInteger.make(3), null);
//
//    public int getRowNum() {
//        return getInt(rowNum);
//    }
//
//    public void setRowNum(int v) {
//        setInt(rowNum, v, null);
//    }
//
//    public static final Property colNum = newProperty(0, BInteger.make(6), null);
//
//    public int getColNum() {
//        return getInt(colNum);
//    }
//
//    public void setColNum(int v) {
//        setInt(colNum, v, null);
//    }
//
//    public static final Property cellWidth = newProperty(Flags.READONLY, "保留字段", null);
//
//    public String getCellWidth() { return getString(cellWidth); }
//
//    public void setCellWidth(String v) { setString(cellWidth, v, null); }
//
//    public static final Property cellHeight = newProperty(0, "310", null);
//
//    public String getCellHeight() { return getString(cellHeight); }
//
//    public void setCellHeight(String v) { setString(cellHeight, v, null); }
//
//    public static final Property fontSize = newProperty(0, "16", null);
//
//    public String getFontSize() { return getString(fontSize); }
//
//    public void setFontSize(String v) { setString(fontSize, v, null); }

    public static final Property chartGroup = newProperty(0, new BChartGroup(), null);

    public BChartGroup getChartGroup() {
        return (BChartGroup) get(chartGroup);
    }

    public void setChartGroup(BChartGroup v) {
        set(chartGroup, v, null);
    }

    @Override
    public Type getType() {
        return TYPE;
    }

    public static final Type TYPE = Sys.loadType(BDashboardRoot.class);
}
